<?php
//判断是否登陆
function is_login()
{
    $user = session('ke_seller_auth');
    if (empty($user)) {
        return 0;
    }
    else {
        return $user['id'];
    }
}

function set_redirect_url($url)
{
    cookie('seller_redirect_url', $url);
}

function get_redirect_url()
{
    return cookie('seller_redirect_url');
    
}